package com.oocl.jmsbook.pojo;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Book {
	
	private Integer id;
	private String name;
	@JsonFormat(pattern="yyyy-MM-dd")
	private Date pubDate;
	private String author;
	private double price;
	private boolean isNew;
	private String publisher;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getPubDate() {
		return pubDate;
	}

	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public boolean isNew() {
		return isNew;
	}

	public void setNew(boolean isNew) {
		this.isNew = isNew;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public Book(Integer id, String name, Date pubDate, String author,
			double price, boolean isNew, String publisher) {
		super();
		this.id = id;
		this.name = name;
		this.pubDate = pubDate;
		this.author = author;
		this.price = price;
		this.isNew = isNew;
		this.publisher = publisher;
	}

	public Book() {
		super();
	}

}
